package com.wing.cabinet.model.request;

import com.wing.cabinet.model.entity.KnifeLifeDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 刀具编号Form
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class KnifeLifeDetailForm {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
    * 存入时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inTime;

    /**
    * 取出时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime outTime;

    /**
     * 当前可用时长
     */
    private Integer preTime;

    /**
     * 使用时长
     */
    private Integer lifeTime;

    /**
     * 剩余时长
     */
    private Integer remainingTime;

    /**
     * 在用流水id
     */
    private Long useInId;

    /**
     * 在用流水id
     */
    private Long useOutId;

    /**
     * 刀具条码
     */
    private String labelCode;


    public interface Add{}

    public interface Update{}

    private Long inCreator;

    private Long outCreator;

    private String inCreatorName;

    private String outCreatorName;

    private Integer useTime;


    private KnifeLifeDetail.InBusinessType inBusinessType;

    private KnifeLifeDetail.OutBusinessType outBusinessType;

    private String skuCode;

    private String productCode;

    private Long brandId;

    private String enterpriseCode;

    private KnifeLifeDetail.LifeUnit lifeUnit;
}
